// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.

package org.jetbrains.kotlin.findUsages;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode;
import org.jetbrains.kotlin.idea.base.test.TestRoot;
import org.jetbrains.kotlin.idea.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.idea.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;

/**
 * This class is generated by {@link org.jetbrains.kotlin.testGenerator.generator.TestGenerator}.
 * DO NOT MODIFY MANUALLY.
 */
@SuppressWarnings("all")
@TestRoot("idea/tests")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("testData/findUsages/kotlinScript")
public class KotlinScriptFindUsagesTestGenerated extends AbstractKotlinScriptFindUsagesTest {
    @java.lang.Override
    @org.jetbrains.annotations.NotNull
    public final KotlinPluginMode getPluginMode() {
        return KotlinPluginMode.K1;
    }

    private void runTest(String testDataFilePath) throws Exception {
        KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
    }

    @TestMetadata("anonymousObject.0.kts")
    public void testAnonymousObject() throws Exception {
        runTest("testData/findUsages/kotlinScript/anonymousObject.0.kts");
    }

    @TestMetadata("anonymousObjectAsInitializer.0.kts")
    public void testAnonymousObjectAsInitializer() throws Exception {
        runTest("testData/findUsages/kotlinScript/anonymousObjectAsInitializer.0.kts");
    }

    @TestMetadata("anonymousObjectInFun.0.kts")
    public void testAnonymousObjectInFun() throws Exception {
        runTest("testData/findUsages/kotlinScript/anonymousObjectInFun.0.kts");
    }

    @TestMetadata("dummy.0.kts")
    public void testDummy() throws Exception {
        runTest("testData/findUsages/kotlinScript/dummy.0.kts");
    }

    @TestMetadata("lambdas.0.kts")
    public void testLambdas() throws Exception {
        runTest("testData/findUsages/kotlinScript/lambdas.0.kts");
    }

    @TestMetadata("localClass.0.kts")
    public void testLocalClass() throws Exception {
        runTest("testData/findUsages/kotlinScript/localClass.0.kts");
    }
}
